/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
 *
 * This library is open source and may be redistributed and/or modified under
 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
 * (at your option) any later version.  The full license is in LICENSE file
 * included with this distribution, and on the openscenegraph.org website.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * OpenSceneGraph Public License for more details.
*/

#ifndef OSG_Tex2DDrawable
#define OSG_Tex2DDrawable 1

//
#include <osg/Drawable>
#include <osgGe/Vec2>
#include <osgGe/Vec3>
#include <osgGe/Vec4>
#include <osg/Array>
#include <osg/PrimitiveSet>

class  Tex2DDrawable : public osg::Drawable
{
    public:

        Tex2DDrawable();

        Tex2DDrawable(osg::Shape* shape);


        virtual Object* cloneType() const { return new Tex2DDrawable(); }

        virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const Tex2DDrawable*>(obj)!=NULL; }
        virtual const char* libraryName() const { return "osg"; }
        virtual const char* className() const { return "Tex2DDrawable"; }

        virtual void drawImplementation(osg::RenderInfo& renderInfo) const;

        void setColor(osg::Vec4f color){color_ = color;}

private:

       osg::Vec4f color_;

protected:

        Tex2DDrawable& operator = (const Tex2DDrawable&) { return *this;}

        virtual ~Tex2DDrawable();
};


#endif
